package com.example.demo.threadPoolSafe;

public class ConsumerSafe implements Runnable {
    private VoSafe vo;
    public ConsumerSafe(VoSafe vo){
        this.vo = vo;
    }
    @Override
    public void run() {
        for(int i=0; i<100; i++){
            try {
                Thread.sleep(50);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            vo.getVo();
        }
    }
}
